<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
<HTML>
<HEAD>
<TITLE>管理员
</TITLE>
<META http-equiv=Content-Type content="text/html;charset=utf-8" >
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=Expires content=-1000>

<LINK href="/OrderMeal/css/admin.css" type="text/css" rel="stylesheet">
<link href="/OrderMeal/css/layout.css" type="text/css" rel="stylesheet">


  
 <script language="javascript">
   function check(form){
	if (form.manager_no.value==""){
		alert("请输入员工账号!");
		return false;
	}
	
	if (form.manager_name.value==""){
		alert("请输入员工姓名!");
		return false;
	}
	if (form.manager_phone.value==""){
		alert("请输入员工联系方式!");
		return false;	
	}
	
	if (form.manager_password.value==""){
		alert("请输入密码!");
		return false;
	  }	
	if (form.manager_repassword.value==""){
		alert("请再次输入密码!");
		return false;
	}
	if (form.manager_password.value != form.manager_repassword.value){
		alert("请输入正确的确认密码!");
	}
   }
</script>
  </head>
  <body>
 <div id="container">
<div id="header"><jsp:include page="header.jsp"></jsp:include></div>
<div id="mainContent">
<div id="sidebar"><jsp:include page="managersf.jsp"></jsp:include></div>
<div id="content">

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TR height=28>
    <TD background=/OrderMeal/Images/title_bg1.jpg>当前位置: 管理员注册</TD></TR>
  <TR>
    <TD bgColor=#b1ceef height=1></TD></TR>
  <TR height=20>
    <TD background=/OrderMeal/Images/shadow_bg.jpg></TD></TR></TABLE>
    
    
  <CENTER>
  <h1>管理员注册</h1>
    <form method = "post" action = "servlet/ManagerRegist.do" name = "ManagerForm" onsubmit="return check(ManagerForm)">
    <table>
    <tr><td>管理员账号：</td>
        <td><input type = "text" name = "manager_no" id = "manager_no"/></td></tr>
    <tr><td>管理员姓名：</td>
        <td><input type = "text" name = "manager_name" id = "manager_name"/></td></tr>
    <tr><td>管理员性别：</td>
        <td><input type = "radio" name = "manager_sex" id = "manager_sex" checked = "checked" value = "男"/>男<input type = "radio" name = "waiter_sex" id = "waiter_sex" value = "女"/>女</td></tr>
    <tr><td>管理员联系方式：</td>
        <td><input type = "text" name = "manager_phone" id = "manager_phone"/></td></tr>
    <tr><td>管理员密码：</td>
        <td><input type = "password" name = "manager_password" id = "manager_password"/></td></tr>
    <tr><td>确认员工密码：</td>
        <td><input type = "password" name = "manager_repassword" id = "manager_repassword"/></td></tr>   
    
    </table>   
    <input type = "submit" name = "submit" id ="submit" value = "提交"/>
    
    </form>
    </CENTER>
    
    
           </div>
</div>

<div id="footer" align="center">版权所有    中北大学10060641  郭倩</div>

</div> 
  </body>
</html>
